#pragma once

class CPumaFont
{
public:
	CPumaFont();
	virtual ~CPumaFont();

public:
	static BOOL	CreateBaseFont(CFont& fontBase);

	BOOL	InitCurFont(CWnd* pWnd, LONG lfHeight = 0);
	void	SetCurFont(LOGFONT *pLogFont, BOOL bRedraw /*= TRUE*/);
	void	SetCurFont(LPCTSTR lpszFaceName, 
								int nPointSize, 
								BOOL bRedraw /*= TRUE*/);
	void	SetCurFont(CFont *pFont, BOOL bRedraw /*= TRUE*/);
	void	SetBold(BOOL bFlag, BOOL bRedraw /*= TRUE*/);



	// FontSize.cpp  Version 1.0
	//
	// Author:  Hans Dietrich
	//          hdietrich2@hotmail.com
	//
	// This software is released into the public domain.
	// You are free to use it in any way you like.
	//
	// This software is provided "as is" with no expressed
	// or implied warranty.  I accept no liability for any
	// damage or loss of business that this software may cause.
	//
	///////////////////////////////////////////////////////////////////////////////
	static int GetFontPointSize(int nHeight);
	static int GetFontHeight(int nPointSize);

protected:
	CWnd*		m_pWnd;
	CFont		m_font;
	BOOL		m_bBold;
};